class Item {
    constructor(id, name, description, price, type) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.price = price;
        this.type = type;
    }

    use(character) {
        // 由具体物品实现
    }
}

const ItemType = {
    CONSUMABLE: 'consumable',
    EQUIPMENT: 'equipment'
}; 